package o;

import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.huawei.appgallery.packagemanager.api.bean.ManagerTask;

public class bpe implements bqd {
    private final Bundle ˋ = new Bundle();

    @NonNull
    public Bundle ˎ() {
        return this.ˋ;
    }

    @NonNull
    public static bpe ॱ(@NonNull bol o_bol) {
        return ˎ(o_bol, null, 0);
    }

    @NonNull
    public static bpe ˋ(@NonNull bol o_bol, @NonNull ManagerTask managerTask, int i) {
        return ˎ(o_bol, managerTask, i);
    }

    @NonNull
    private static bpe ˎ(@NonNull bol o_bol, @Nullable ManagerTask managerTask, int i) {
        bpe o_bpe = new bpe();
        o_bpe.ˋ.putInt("int.sessionId", o_bol.ˏ());
        o_bpe.ˋ.putInt("int.stage", 2);
        o_bpe.ˋ.putInt("int.status", ˋ(managerTask));
        o_bpe.ˋ.putInt("int.installStatus", i);
        o_bpe.ˋ.putStringArrayList("ArrayList<String>.features", o_bol.ॱˋ());
        o_bpe.ˋ.putStringArrayList("ArrayList<String>.languages", o_bol.ʻॱ());
        return o_bpe;
    }

    private static int ˋ(@Nullable ManagerTask managerTask) {
        if (managerTask == null) {
            return 1;
        }
        if (cnz.ʼ.equals(managerTask.status)) {
            return 3;
        }
        return 2;
    }
}
